﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YunCMS.Core;
using YunCMS.Common;
using YunCMS.Model;
using YunCMS.Core.Template;

namespace YunCMS.Web
{
    public partial class index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var th = new TemplateHelper(Server.MapPath("~/templates/default/"));
            GlobalTemplate gtemp = new GlobalTemplate();
            var config = gtemp.GetConfigration();
            th.Put("seo", config);
            th.Put("models", new ArticalTemplate());
            string str = th.BuildString("index.htm");
            Response.Write(str.Replace("\"images/", "\"/templates/default/images/").Replace("(images/", "(/templates/default/images/"));
            Response.End();
        }
    }
}